#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QtNetwork>
#include <QLabel>
#include "drawwidget.h"
extern int LedStatus[];
namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
    QUdpSocket  *m_sendUdp;
    QUdpSocket  *m_recvUdp;
protected:
    void changeEvent(QEvent *e);
    void sendData(QString s);
    void sendData(char *s,int count);
    void UpdateLed();
private:
    Ui::MainWindow *ui;
    DrawWidget *widget;
     int m_port;
     int m_remotePort;
     QString m_remoteAddr;
     QLabel  *m_info;
     QLabel  *m_LedInfo[5];
public slots:
    void dataReceived();
    void testMode();
    void SetLed();
};

#endif // MAINWINDOW_H
